import request from '@/config/axios'


// 查询内码列表
export const getInternalCode = (params: PageParam) => {
  return request.get({ url: '/project/internal-code/page', params })
}

// 查询内码列表不分页List
export const getInternalCodeList = (params: PageParam) => {
  return request.get({ url: '/project/internal-code/list', params })
}

// 导出
export const exportInternalCode = (params) => {
  return request.download({ url: '/project/internal-code/exportExcel', params })
}

// 导出内码数据为txt格式
export const exportInternalCodeTxt = (params) => {
  return request.download({ url: '/project/internal-code/exportTxt', params })
}

// 查询工位详情列表
export const listWorkstationDetail = (data: PageParam) => {
  return request.post({ url: '/project/internal-code/listWorkstationDetail', data })
}

export const exportWorkstationDetail = async (params) => {
  return await request.download({ url: '/project/internal-code/exportWorkstationDetail', params })
}


